﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using ORM.Common.DataAnnotations;

namespace ORM.Business.Models.Entities
{
    public class VotedGuide
    {
        #region Primitive properties

        public int Id { get; set; }
        [RequiredExtended]
        public int GuideId { get; set; }

        [RequiredExtended]
        [Column("VotedBy")]
        public int VotedById { get; set; }

        [RequiredExtended]
        public DateTime VotedDate { get; set; }

        public bool IsUpVote { get; set; }
        #endregion

        #region Navigation properties


        [ForeignKey("GuideId")]
        public virtual Guide Guide { get; set; }

        [ForeignKey("VotedById")]
        public virtual user VotedBy { get; set; }
        #endregion

    }
}


